package jbl.model;

import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * Tkf entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "tda", catalog = "jbldangl")
public class Tda implements java.io.Serializable {

	private String id;
	private Txg txg;
	
	private Tuser tuser;
	private Tuser tuser1;
	
	private Code_zt zt;
	private String bz;
	private Timestamp cjsj;
	
	private String gsmc;
	private String lbmc;
	private Tda da;


	@Id
	@Column(name = "id", unique = true, nullable = false, length = 50)
	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	@Column(name = "bz", length = 50)
	public String getBz() {
		return bz;
	}

	public void setBz(String bz) {
		this.bz = bz;
	}

	@Column(name = "cjsj", length = 11)
	public Timestamp getCjsj() {
		return cjsj;
	}

	public void setCjsj(Timestamp cjsj) {
		this.cjsj = cjsj;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "addUserID")
	public Tuser getTuser() {
		return tuser;
	}

	public void setTuser(Tuser tuser) {
		this.tuser = tuser;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "editUserID")
	public Tuser getTuser1() {
		return tuser1;
	}
	public void setTuser1(Tuser tuser1) {
		this.tuser1 = tuser1;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "xgId")
	public Txg getTxg() {
		return txg;
	}

	public void setTxg(Txg txg) {
		this.txg = txg;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ztId")
	public Code_zt getZt() {
		return zt;
	}

	public void setZt(Code_zt zt) {
		this.zt = zt;
	}
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "ided")
	public Tda getDa() {
		return da;
	}

	public void setDa(Tda da) {
		this.da = da;
	}
	@Column(name = "gsmc", length = 50)
	public String getGsmc() {
		return gsmc;
	}

	public void setGsmc(String gsmc) {
		this.gsmc = gsmc;
	}
	@Column(name = "lbmc", length = 50)
	public String getLbmc() {
		return lbmc;
	}

	public void setLbmc(String lbmc) {
		this.lbmc = lbmc;
	}
	
}